From: Claudio Cambra Date: Tue, 11 Mar 2025 08:06:26 +0000 (+0800) Subject: gui/tray: Hide resume sync for all/pause sync for all menu item if there are no confi... X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~1^2~17^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=394f20bffde389aa1d0e8208e6fb4e6b9073edf7;p=nextcloud-desktop.git gui/tray: Hide resume sync for all/pause sync for all menu item if there are no configured sync folders Signed-off-by: Claudio Cambra --- diff --git a/src/gui/tray/CurrentAccountHeaderButton.qml b/src/gui/tray/CurrentAccountHeaderButton.qml index ac9d88a65..787470f9a 100644 --- a/src/gui/tray/CurrentAccountHeaderButton.qml +++ b/src/gui/tray/CurrentAccountHeaderButton.qml @@ -104,8 +104,11 @@ Button { MenuItem { id: syncPauseButton + height: Systray.anySyncFolders ? implicitHeight : 0 font.pixelSize: Style.topLinePixelSize hoverEnabled: true + enabled: Systray.anySyncFolders + visible: Systray.anySyncFolders onClicked: Systray.syncIsPaused = !Systray.syncIsPaused Accessible.role: Accessible.MenuItem Accessible.name: Systray.syncIsPaused ? qsTr("Resume sync for all") : qsTr("Pause sync for all")